package com.weixin.portalweb.fegindemo;

import com.weixin.portalweb.domain.User;
import feign.Headers;
import feign.RequestLine;


/**
 * @author: Jack
 * @create: 2019-11-27 10:01
 **/
//@FeignClient(value = "user",url="${addr.url}")
public interface UserClient {
    @RequestLine("GET /index")
    String index();
  /*  @RequestMapping(value = "get/{id}",method = RequestMethod.GET)
    String findById(@PathVariable int id);*/

    @Headers({"Content-Type: application/json","Accept: application/json"})
    @RequestLine("POST /users/list")
    User getOwner(User user);
}
